hs=`hostname`
if [ "$hs"x = "mich"x ]; then
  project_base=/home/mich/blac_aero/
  logfile=$project_base/Application/sys_run.log
else
  project_base=/home/luban/blac/temp/
  logfile=$project_base/Application/sys_run.log

fi
date>>$logfile
echo '############### this is run_del_design.sh ################'>>$logfile
echo $2 >>$logfile

echo `hostname`>>$logfile
if [ "$hs"x = "mich"x ]; then
  echo ' hostname=mich'>>$logfile
  echo 'this is delete file process on mich pc '>>$logfile
  num=`ls -l $1|wc -l`
  echo $num>>$logfile
  if [ "$num" -gt "3" ];then
    sudo rm -f $1/Ind*.dat
  fi
  my_out=`pwd`/inputs/blade_shape_out
  num=`ls -l $my_out|wc -l`
  if [ $num -gt "3" ];then
      sudo rm -f $my_out/*.*
  fi
  my_shape=`pwd`/inputs/blade_shape
  num=`ls -l $my_shape|wc -l`
  if [ $num -gt "3" ];then
      sudo rm -f $my_shape/*.*
  fi
elif [ "$hs"x = "LUBAN"x ];then
  echo 'this is delete file process at server .19'>>$logfile
    num=`ls -l $1|wc -l`
    if [ $num -gt "3" ];then
      sudo rm -f $1/Ind*.dat
    fi
    my_out=/home/luban/NAS/inputs/blade_shape_out
    num=`ls -l $my_out|wc -l`
    if [ $num -gt "3" ];then
        sudo rm -f $my_out/*.*
    fi
    my_shape=/home/luban/NAS/inputs/blade_shape
    num=`ls -l $my_shape|wc -l`
    if [ $num -gt "3" ];then
          sudo rm -f $my_shape/*.*
    fi
fi


